/*
 * libFuse.h
 *
 *  Created on: 22/12/2011
 *      Author: utn_so
 */

#ifndef LIBFUSE_H_
#define LIBFUSE_H_

int8_t esDir(mode_t);

int8_t esArchivoRegular(mode_t);

int8_t tienePermisoLectura(mode_t);

int8_t tienePermisoEscritura(mode_t);

int8_t tienePermisoEjecucion(mode_t);

//--------------------FUNCIONES FUSE--------------------//

int32_t FLAME_accessAux(const char* path, int32_t mask);

int32_t FLAME_openAux(const char* path, struct fuse_file_info* fi);

int32_t FLAME_readdirAux(char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi);

int32_t FLAME_readAux(const char* path, char* buf, size_t size, off_t offset, struct fuse_file_info* fi);

int32_t FLAME_createAux(const char *path, mode_t modo, struct fuse_file_info *fInfo);

int32_t FLAME_mkdirAux(const char *path, mode_t modo);

int32_t FLAME_rmdirAux(const char* path);

int32_t FLAME_getattrAux(const char* path, struct stat* stbuf);

int32_t FLAME_flushAux(const char * path, struct fuse_file_info * info);

int32_t FLAME_unlinkAux(const char* path);

int32_t FLAME_ftruncateAux(const char * path, off_t tamanio, struct fuse_file_info * info);

int32_t FLAME_writeAux(const char* path, char* buf, size_t size, off_t offset, struct fuse_file_info* fi);

int32_t FLAME_renameAux(const char* pathViejo, const char* pathNuevo);

int32_t FLAME_releaseAux(const char* path, struct fuse_file_info* info);

#endif /* LIBFUSE_H_ */
